<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.17"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>XMP Toolkit SDK: AdobeXMPCommon::ReportErrorAndContinueFunctor Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="xmp_tagline_small.jpg"/></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">XMP Toolkit SDK
   &#160;<span id="projectnumber">6.0.0</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.17 -->
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',false,false,'search.php','Search');
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function(){initNavTree('classAdobeXMPCommon_1_1ReportErrorAndContinueFunctor.html',''); initResizable(); });
/* @license-end */
</script>
<div id="doc-content">
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pro-attribs">Protected Attributes</a> &#124;
<a href="classAdobeXMPCommon_1_1ReportErrorAndContinueFunctor-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">AdobeXMPCommon::ReportErrorAndContinueFunctor Class Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p>A Function object used by the client to report back and warnings to the library encountered during the serialization operation.  
 <a href="classAdobeXMPCommon_1_1ReportErrorAndContinueFunctor.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="IError_8h_source.html">IError.h</a>&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a40e6fedd9a880d70095b9468b5cf05db"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classAdobeXMPCommon_1_1ReportErrorAndContinueFunctor.html#a40e6fedd9a880d70095b9468b5cf05db">ReportErrorAndContinueFunctor</a> (<a class="el" href="namespaceAdobeXMPCommon.html#a8dc9ba4ce78a957c0843998c2468241a">ReportErrorAndContinueABISafeProc</a> safeProc)</td></tr>
<tr class="separator:a40e6fedd9a880d70095b9468b5cf05db"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5dd060eac19acba07ce701dc9ebaa09d"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classAdobeXMPCommon_1_1ReportErrorAndContinueFunctor.html#a5dd060eac19acba07ce701dc9ebaa09d">operator()</a> (<a class="el" href="classAdobeXMPCommon_1_1IError__v1.html#a00f8c929931409a4bf6eeeb47270bf0d">IError_v1::eErrorDomain</a> errorDomain, <a class="el" href="classAdobeXMPCommon_1_1IError__v1.html#a29cc93a78d4e1111ec8e51e4ca9a82b3">IError_v1::eErrorCode</a> errorCode, <a class="el" href="classAdobeXMPCommon_1_1IError__v1.html#a9079d6a31de223baec5db854f826d702">IError_v1::eErrorSeverity</a> errorSeverity, const char *message)</td></tr>
<tr class="separator:a5dd060eac19acba07ce701dc9ebaa09d"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pro-attribs"></a>
Protected Attributes</h2></td></tr>
<tr class="memitem:a3b28d2e68ebbcd5d20781d8b7a48f879"><td class="memItemLeft" align="right" valign="top"><a class="el" href="namespaceAdobeXMPCommon.html#a8dc9ba4ce78a957c0843998c2468241a">ReportErrorAndContinueABISafeProc</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classAdobeXMPCommon_1_1ReportErrorAndContinueFunctor.html#a3b28d2e68ebbcd5d20781d8b7a48f879">mSafeProc</a></td></tr>
<tr class="separator:a3b28d2e68ebbcd5d20781d8b7a48f879"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>A Function object used by the client to report back and warnings to the library encountered during the serialization operation. </p>
<p>Based on the error condition library can return 0 or non zero to indicate that a particular warning can be ignored and operation can continue. </p>

<p class="definition">Definition at line <a class="el" href="IError_8h_source.html#l00352">352</a> of file <a class="el" href="IError_8h_source.html">IError.h</a>.</p>
</div><h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a id="a40e6fedd9a880d70095b9468b5cf05db"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a40e6fedd9a880d70095b9468b5cf05db">&#9670;&nbsp;</a></span>ReportErrorAndContinueFunctor()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">AdobeXMPCommon::ReportErrorAndContinueFunctor::ReportErrorAndContinueFunctor </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="namespaceAdobeXMPCommon.html#a8dc9ba4ce78a957c0843998c2468241a">ReportErrorAndContinueABISafeProc</a>&#160;</td>
          <td class="paramname"><em>safeProc</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="IError_8h_source.html#l00354">354</a> of file <a class="el" href="IError_8h_source.html">IError.h</a>.</p>
<div class="fragment"><div class="line"><a name="l00355"></a><span class="lineno">  355</span>&#160;                        : <a class="code" href="classAdobeXMPCommon_1_1ReportErrorAndContinueFunctor.html#a3b28d2e68ebbcd5d20781d8b7a48f879">mSafeProc</a>( safeProc ) {}</div>
</div><!-- fragment -->
</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a id="a5dd060eac19acba07ce701dc9ebaa09d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5dd060eac19acba07ce701dc9ebaa09d">&#9670;&nbsp;</a></span>operator()()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">bool AdobeXMPCommon::ReportErrorAndContinueFunctor::operator() </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classAdobeXMPCommon_1_1IError__v1.html#a00f8c929931409a4bf6eeeb47270bf0d">IError_v1::eErrorDomain</a>&#160;</td>
          <td class="paramname"><em>errorDomain</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classAdobeXMPCommon_1_1IError__v1.html#a29cc93a78d4e1111ec8e51e4ca9a82b3">IError_v1::eErrorCode</a>&#160;</td>
          <td class="paramname"><em>errorCode</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classAdobeXMPCommon_1_1IError__v1.html#a9079d6a31de223baec5db854f826d702">IError_v1::eErrorSeverity</a>&#160;</td>
          <td class="paramname"><em>errorSeverity</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>message</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">errorDomain</td><td>A value of #<a class="el" href="classAdobeXMPCommon_1_1IError__v1.html#a00f8c929931409a4bf6eeeb47270bf0d" title="Indicates various types of error domains.">IError_v1::eErrorDomain</a> indicating the domain of the error. </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">errorCode</td><td>A value of #<a class="el" href="classAdobeXMPCommon_1_1IError__v1.html#a29cc93a78d4e1111ec8e51e4ca9a82b3">IError_v1::eErrorCode</a> indicating the code of the error. </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">errorSeverity</td><td>A value of #<a class="el" href="classAdobeXMPCommon_1_1IError__v1.html#a9079d6a31de223baec5db854f826d702" title="Indicates various types of errors.">IError_v1::eErrorSeverity</a> indicating the severity of the error. </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">message</td><td>Pointer to a constant char buffer containing message. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>true value indicating that process can continue ignoring the warning, otherwise return false to indicate it should stop immediately. </dd></dl>

<p class="definition">Definition at line <a class="el" href="IError_8h_source.html#l00364">364</a> of file <a class="el" href="IError_8h_source.html">IError.h</a>.</p>
<div class="fragment"><div class="line"><a name="l00364"></a><span class="lineno">  364</span>&#160;                                                                                                                                                                 {</div>
<div class="line"><a name="l00365"></a><span class="lineno">  365</span>&#160;                        <a class="code" href="namespaceAdobeXMPCommon.html#ae77ac4e503ff59cb2145b6681eb7c150">pcIError_base</a> error( NULL );</div>
<div class="line"><a name="l00366"></a><span class="lineno">  366</span>&#160;                        <span class="keyword">auto</span> retValue = <a class="code" href="classAdobeXMPCommon_1_1ReportErrorAndContinueFunctor.html#a3b28d2e68ebbcd5d20781d8b7a48f879">mSafeProc</a>( <span class="keyword">static_cast&lt;</span> <a class="code" href="namespaceAdobeXMPCommon.html#a0b1bbe96e1a757e66974c2f076afe4d2">uint32</a> <span class="keyword">&gt;</span>( errorDomain ), <span class="keyword">static_cast&lt;</span> <a class="code" href="namespaceAdobeXMPCommon.html#a0b1bbe96e1a757e66974c2f076afe4d2">uint32</a> <span class="keyword">&gt;</span>( errorCode ), <span class="keyword">static_cast&lt;</span> <a class="code" href="namespaceAdobeXMPCommon.html#a0b1bbe96e1a757e66974c2f076afe4d2">uint32</a> <span class="keyword">&gt;</span>( errorSeverity ), message, error );</div>
<div class="line"><a name="l00367"></a><span class="lineno">  367</span>&#160;                        <span class="keywordflow">if</span> ( error )</div>
<div class="line"><a name="l00368"></a><span class="lineno">  368</span>&#160;                                <span class="keywordflow">throw</span> IError_v1::MakeShared( error );</div>
<div class="line"><a name="l00369"></a><span class="lineno">  369</span>&#160;                        <span class="keywordflow">return</span> retValue != 0 ? true : <span class="keyword">false</span>;</div>
<div class="line"><a name="l00370"></a><span class="lineno">  370</span>&#160;                }</div>
</div><!-- fragment -->
<p class="reference">References <a class="el" href="IError_8h_source.html#l00373">mSafeProc</a>, and <a class="el" href="XMPCommonFwdDeclarations_8h_source.html#l00064">AdobeXMPCommon::pcIError_base</a>.</p>

</div>
</div>
<h2 class="groupheader">Member Data Documentation</h2>
<a id="a3b28d2e68ebbcd5d20781d8b7a48f879"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a3b28d2e68ebbcd5d20781d8b7a48f879">&#9670;&nbsp;</a></span>mSafeProc</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="namespaceAdobeXMPCommon.html#a8dc9ba4ce78a957c0843998c2468241a">ReportErrorAndContinueABISafeProc</a> AdobeXMPCommon::ReportErrorAndContinueFunctor::mSafeProc</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="IError_8h_source.html#l00373">373</a> of file <a class="el" href="IError_8h_source.html">IError.h</a>.</p>

<p class="reference">Referenced by <a class="el" href="IError_8h_source.html#l00364">operator()()</a>.</p>

</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>public/include/XMPCommon/Interfaces/<a class="el" href="IError_8h_source.html">IError.h</a></li>
</ul>
</div><!-- contents -->
</div><!-- doc-content -->
<div class="ttc" id="aclassAdobeXMPCommon_1_1ReportErrorAndContinueFunctor_html_a3b28d2e68ebbcd5d20781d8b7a48f879"><div class="ttname"><a href="classAdobeXMPCommon_1_1ReportErrorAndContinueFunctor.html#a3b28d2e68ebbcd5d20781d8b7a48f879">AdobeXMPCommon::ReportErrorAndContinueFunctor::mSafeProc</a></div><div class="ttdeci">ReportErrorAndContinueABISafeProc mSafeProc</div><div class="ttdef"><b>Definition:</b> <a href="IError_8h_source.html#l00373">IError.h:373</a></div></div>
<div class="ttc" id="anamespaceAdobeXMPCommon_html_a0b1bbe96e1a757e66974c2f076afe4d2"><div class="ttname"><a href="namespaceAdobeXMPCommon.html#a0b1bbe96e1a757e66974c2f076afe4d2">AdobeXMPCommon::uint32</a></div><div class="ttdeci">XMP_Uns32 uint32</div><div class="ttdef"><b>Definition:</b> <a href="XMPCommonDefines_8h_source.html#l00174">XMPCommonDefines.h:174</a></div></div>
<div class="ttc" id="anamespaceAdobeXMPCommon_html_ae77ac4e503ff59cb2145b6681eb7c150"><div class="ttname"><a href="namespaceAdobeXMPCommon.html#ae77ac4e503ff59cb2145b6681eb7c150">AdobeXMPCommon::pcIError_base</a></div><div class="ttdeci">const typedef IError_v1 * pcIError_base</div><div class="ttdef"><b>Definition:</b> <a href="XMPCommonFwdDeclarations_8h_source.html#l00064">XMPCommonFwdDeclarations.h:64</a></div></div>
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="namespaceAdobeXMPCommon.html">AdobeXMPCommon</a></li><li class="navelem"><a class="el" href="classAdobeXMPCommon_1_1ReportErrorAndContinueFunctor.html">ReportErrorAndContinueFunctor</a></li>
    <li class="footer">Generated by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.17 </li>
  </ul>
</div>
</body>
</html>
